/***************************************************************************
 *   Copyright (C) 2008 by Goliash   *
 *   goliash@goliash.net   *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/
#include "audio.h"

Audio::Audio()
{
	length = 0;
	version = "";
	layer = "";
	bitrate = 0;
	freq = 0;
	channel = 0;
	
	tag_title = "";
	tag_artist = "";
	tag_composer = "";
	tag_orig_artist = "";
	tag_album = "";
	tag_genre = "";
	tag_year = "";
	tag_track = "";
	tag_comment = "";
	tag_encoder = "";
}

QString Audio::channelsToString(int channels)
{
	QString ch[] = {"Stereo","Joint Stereo","Dual Channel","Single Channel"};
	return ch[channels];
}

int Audio::getLength()
{
	return length;
}

void Audio::setLength(int length)
{
	this->length = length;
}

QString Audio::getVersion()
{
	return version;
}

void Audio::setVersion(QString version)
{
	this->version = version;
}

QString Audio::getLayer()
{
	return layer;
}

void Audio::setLayer(QString layer)
{
	this->layer = layer;
}

int Audio::getBitrate()
{
	return bitrate;
}

void Audio::setBitrate(int bitrate)
{
	this->bitrate = bitrate;
}

int Audio::getFreq()
{
	return freq;
}

void Audio::setFreq(int freq)
{
	this->freq = freq;
}

int Audio::getChannel()
{
	return channel;
}

void Audio::setChannel(int channel)
{
	this->channel = channel;
}

QString Audio::getTag_title()
{
	return tag_title;
}

void Audio::setTag_title(QString tag_title)
{
	this->tag_title = tag_title;
}

QString Audio::getTag_artist()
{
	return tag_artist;
}

void Audio::setTag_artist(QString tag_artist)
{
	this->tag_artist = tag_artist;
}

QString Audio::getTag_composer()
{
	return tag_composer;
}

void Audio::setTag_composer(QString tag_composer)
{
	this->tag_composer = tag_composer;
}

QString Audio::getTag_orig_artist()
{
	return tag_orig_artist;
}

void Audio::setTag_orig_artist(QString tag_orig_artist)
{
	this->tag_orig_artist = tag_orig_artist;
}

QString Audio::getTag_album()
{
	return tag_album;
}

void Audio::setTag_album(QString tag_album)
{
	this->tag_album = tag_album;
}

QString Audio::getTag_genre()
{
	return tag_genre;
}

void Audio::setTag_genre(QString tag_genre)
{
	this->tag_genre = tag_genre;
}

QString Audio::getTag_year()
{
	return tag_year;
}

void Audio::setTag_year(QString tag_year)
{
	this->tag_year = tag_year;
}

QString Audio::getTag_track()
{
	return tag_track;
}

void Audio::setTag_track(QString tag_track)
{
	this->tag_track = tag_track;
}

QString Audio::getTag_comment()
{
	return tag_comment;
}

void Audio::setTag_comment(QString tag_comment)
{
	this->tag_comment = tag_comment;
}

QString Audio::getTag_encoder()
{
	return tag_encoder;
}

void Audio::setTag_encoder(QString tag_encoder)
{
	this->tag_encoder = tag_encoder;
}

